Use PEGetVersion to retrieve the version number of the DLL or the Crystal Report Engine. The high
short CRPE_API PEGetVersion (
short versionRequested );
Specifies whether the DLL or Crystal Report Engine version is being requested. Use one of the following PE_GV_XXX constants. | ||
Constant | Description | |
Returns the version number of the DLL or the Crystal Report Engine.
Declare Function PEGetVersion Lib "crpe32.dll" (ByVal version As Integer)
As Integer
The following simplifies the PEGetVersion call in Visual Basic.
Function PEVBGetVersion (ByVal component As Integer) As Single
Dim version As Integer
Dim major As Integer
Dim minor As Integer
version = PEGetVersion(component)
If version = 0 Then
PEVBGetVersion = 0
Else
major = version / 256
minor = version Mod 256
PEVBGetVersion = major + (minor / 10)
End If
End Function
function PEGetVersion (
versionRequested: integer
): Smallint stdcall;
EXTERN CWORD PEGetVersion (CWORD) CRPE.DLL
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |